<div class="page">
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li>
					<a class="add" href="page/navigation_demo/navigation_demo_add.html"
						target="dialog" width="380" height="400" callback="reload"><span>添加</span> </a>
				</li>
				<li>
					<a class="delete" url="/page/navigation/demo/{navigation_id}" area="tbody.list"
						callback="reload" type="delete" target="navTabTodo"
						title="确定要删除选中的数据吗？" warn="请选择需要删除的数据项！"><span>删除</span> </a>
				</li>
			</ul>
		</div>

		<table class="list" width="98%" layoutH="54">
			<thead>
				<tr>
					<th width="25">
						<input type="checkbox" name="objectId" value="navigation_id" />
					</th>
					<th width="30">
						id
					</th>
					<th width="200">
						模板导航名字
					</th>
					<th width="300">
						容器
					</th>
					<th width="300">
						模板
					</th>
					<th>
						描述
					</th>
					<th align="right" width="30">
						操作
					</th>
				</tr>
			</thead>
			<tbody style="display: none;" class="templet">
				<tr layout="${navigation_id}" put="/page/navigation/demo/${navigation_id}">
					<td>
						<input type="checkbox" name="navigation_id" value="${navigation_id}" />
					</td>
					<td>
						${navigation_id}
					</td>
					<td name="title" title="${title}" class="edit">
						${title}
					</td>
					<td name="container" title="${container}" class="edit">
						${container}
					</td>
					<td name="templet" title="${templet}" class="edit">
						${templet}
					</td>
					<td name="description" title="${description}" class="edit">
						${description}
					</td>
					<td>
						<a class="edit"
							href="page/navigation_demo/navigation_demo_update.html?navigation_id=${navigation_id}"
							target="dialog" warn="非法参数（${navigation_id}）" width="750"
							height="600" callback="updateNavigation" title="修改页面【${title}】"><span>修改</span>
						</a>
					</td>
				</tr>
			</tbody>
			<tbody class="list" action="/page/navigation/demo/list">

			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages"></div>
			<div class="pagination" totalCount="0" numPerPage="20" pageNumShown="10" currentPage="1"></div>
		</div>

	</div>
</div>
<script>
function updateNavigation(item){
	var table=$("table.list");
	var navigation=$("tr[layout="+item.navigation_id+"]",table);
	navigation.find("td[name=title]").text(item.title);
	navigation.find("td[name=container]").text(item.container);
	navigation.find("td[name=demo]").text(item.demo);
	navigation.find("td[name=description]").text(item.description);
	alertMsg.correct("更新成功");
}
</script>

